package com.sb.registration.component.service;

import com.sb.registration.component.model.UserWrapper;

/**
 * 
 * 
 * @author gautam.amitkumar@gmail.com
 *
 */
public interface UserValidator {

	/**
	 * This method validates user data provided for registration. For simplification, all fields will be validated 
	 * in the same request and a common string message will be generated for all validation errors separated by commmas.
	 * 
	 * in case of no validation errors, a blank string will be returned from this method. 
	 * 
	 * NOTE- THIS IMPLEMENTATION IS DONE ONLY TO REDUCE THE EFFORT. THIS CAN BE DONE IN A BETTER WAY BY DEFINE VALIDATION RESULT OBJECT HAVING
	 * LIST OF VALIDATION ERRORS AND RESPONSE ACCORDINGLY
	 * 
	 * @param userData
	 * @return
	 */
	String validateUser(UserWrapper userData);
}
